target remote localhost:2331
#swd interface
#monitor interface SWD
# Reset the target
monitor flash device = STM32F103C8
monitor flash download = 1
monitor flash breakpoints = 1
#monitor speed 1000
load Debug/elfcode.elf
monitor reset 1